/*
 * @(#)ExecuteResult.java
 *
 * Copyright 2012 by ShenY BIS, All rights reserved.
 */

package com.bis.framework.exception.entity;

/**
 * ExceptionPopulateAction
 * 
 * @author BIS 2012-12-24
 */
public class ExecuteResult
{
    /**
     * UNEXCEPTED_ERROR 5
     */
    public static final int UNEXCEPTED_ERROR = 5;
    /**
     * RUNTIME_ERROR 4
     */
    public static final int RUNTIME_ERROR    = 4;
    /**
     * SYSTEM_ERROR 3
     */
    public static final int SYSTEM_ERROR     = 3;
    /**
     * BUSINESS_ERROR 2
     */
    public static final int BUSINESS_ERROR   = 2;
    /**
     * VALIDATE_ERROR 1
     */
    public static final int VALIDATE_ERROR   = 1;
    /**
     * SUCCESS 0
     */
    public static final int SUCCESS          = 0;

    /**
     * type
     */
    private int             type             = ExecuteResult.SUCCESS;
    /**
     * message
     */
    private String          message;
    /**
     * causeMessage
     */
    private String          causeMessage;
    /**
     * pageComponentId
     */
    private String          pageComponentId;
    /**
     * previewUrl
     */
    private String          previewUrl;

    /**
     * @return the type
     */
    public int getType()
    {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(int type)
    {
        this.type = type;
    }

    /**
     * @return the message
     */
    public String getMessage()
    {
        return message;
    }

    /**
     * @param message the message to set
     */
    public void setMessage(String message)
    {
        this.message = message;
    }

    /**
     * @return the causeMessage
     */
    public String getCauseMessage()
    {
        return causeMessage;
    }

    /**
     * @param causeMessage the causeMessage to set
     */
    public void setCauseMessage(String causeMessage)
    {
        this.causeMessage = causeMessage;
    }

    /**
     * @return the pageComponentId
     */
    public String getPageComponentId()
    {
        return pageComponentId;
    }

    /**
     * @param pageComponentId the pageComponentId to set
     */
    public void setPageComponentId(String pageComponentId)
    {
        this.pageComponentId = pageComponentId;
    }

    /**
     * @return the previewUrl
     */
    public String getPreviewUrl()
    {
        return previewUrl;
    }

    /**
     * @param previewUrl the previewUrl to set
     */
    public void setPreviewUrl(String previewUrl)
    {
        this.previewUrl = previewUrl;
    }

    /**
     * @return the unexceptedError
     */
    public static int getUnexceptedError()
    {
        return UNEXCEPTED_ERROR;
    }

    /**
     * @return the runtimeError
     */
    public static int getRuntimeError()
    {
        return RUNTIME_ERROR;
    }

    /**
     * @return the systemError
     */
    public static int getSystemError()
    {
        return SYSTEM_ERROR;
    }

    /**
     * @return the businessError
     */
    public static int getBusinessError()
    {
        return BUSINESS_ERROR;
    }

    /**
     * @return the validateError
     */
    public static int getValidateError()
    {
        return VALIDATE_ERROR;
    }

    /**
     * @return the success
     */
    public static int getSuccess()
    {
        return SUCCESS;
    }

}
